package com.easylinkin.linkappapi.common.utils;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;


/**
 * <p></p>
 *
 * @author TongJie
 * @since 2020/4/10 22:35
 */
@RequestMapping("/i18n")
@RestController
public class I18nTestController {

    @RequestMapping("/i18nTest2")
    public ModelAndView i18nTest2() {
        ModelAndView mv = new ModelAndView();
        mv.setViewName("i18nTest.html");
        System.out.println(MessageUtils.get("user.title"));
        return mv;
    }

    @RequestMapping("/i18nTest")
    public String i18nTest() {
        return MessageUtils.get("user.title");
    }
}

